/* 响应式设计增强样式 */

/* 大屏幕设备 (1200px 及以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕设备 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕设备 (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* 超小屏幕设备 (575px 及以下) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 90vh;
        padding: 80px 0 40px;
    }
    
    .hero-container {
        padding: 0 15px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-image i {
        font-size: 5rem;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
    }
    
    .floating-element i {
        font-size: 1rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
}

/* 横屏模式适配 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .floating-elements {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-title,
    .hero-description {
        color: black !important;
    }
    
    .features {
        background: white !important;
    }
}

/* 减少动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
    
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
    
    .btn-secondary {
        border: 2px solid white;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f3f4f6;
        --text-secondary: #d1d5db;
        --background-light: #111827;
        --background-white: #1f2937;
        --border-color: #374151;
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .feature-card {
        background: var(--background-white);
        border-color: var(--border-color);
    }
    
    .nav-link {
        color: var(--text-primary);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }
} 